package com.lastproject.dto;

import java.io.Serializable;
import java.util.Date;

public class BorrowedDTO implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private int id;
	private int idUser;
	private int idBook;
	private Date borrowDate;
	private Date mustReturnDate;
	private Date returnDate;
	
	private UserDTO borrowedBy;
	
	
	public BorrowedDTO() {
		super();
	}


	public BorrowedDTO(int id, int idUser, int idBook, Date borrowDate,
			Date mustReturnDate, Date returnDate) {
		super();
		this.id = id;
		this.idUser = idUser;
		this.idBook = idBook;
		this.borrowDate = borrowDate;
		this.mustReturnDate = mustReturnDate;
		this.returnDate = returnDate;
	}


	public int getId() {
		return id;
	}


	public void setId(int id) {
		this.id = id;
	}


	public int getIdUser() {
		return idUser;
	}


	public void setIdUser(int idUser) {
		this.idUser = idUser;
	}


	public int getIdBook() {
		return idBook;
	}


	public void setIdBook(int idBook) {
		this.idBook = idBook;
	}


	public Date getBorrowDate() {
		return borrowDate;
	}


	public void setBorrowDate(Date borrowDate) {
		this.borrowDate = borrowDate;
	}


	public Date getMustReturnDate() {
		return mustReturnDate;
	}


	public void setMustReturnDate(Date mustReturnDate) {
		this.mustReturnDate = mustReturnDate;
	}


	public Date getReturnDate() {
		return returnDate;
	}


	public void setReturnDate(Date returnDate) {
		this.returnDate = returnDate;
	}


	public UserDTO getBorrowedBy() {
		return borrowedBy;
	}


	public void setBorrowedBy(UserDTO borrowedBy) {
		this.borrowedBy = borrowedBy;
	}
	

}
